package sg.edu.nus.iss.team8s.vmcs.beans;

/**
 * 
 * @author Zheng Xiaofeng
 *
 */

public abstract class StoreItem {
	private int quantity = 0;
	private StoreObject content = null;
	protected StoreItem(int quantity, StoreObject content) {
		super();
		this.quantity = quantity;
		this.content = content;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public StoreObject getContent() {
		return content;
	}
	public void setContent(StoreObject content) {
		this.content = content;
	}
	public boolean increment(){
		quantity++;
		return true;
	}
	
	public boolean decrement(){
		if(quantity > 0){
			quantity--;
		}
		return true;
	}
}
